﻿using MediatR;
using RearLivestock.Common.Dtos;
using System.ComponentModel.DataAnnotations;

namespace RearLivestock.RBAC.Api.Application.hqApplication.Commands.Fieldses
{
    public class CreateFieldCommand : IRequest<Result>
    {
        /// <summary>
        /// 栏位Id
        /// </summary>
        public int FieldId { get; set; }
        /// <summary>
        /// 栏位名称
        /// </summary>
        public string FieldName { get; set; } = string.Empty;
        /// <summary>
        /// 栋舍id
        /// </summary>
        public int BedroomId { get; set; }

        /// <summary>
        /// 添加方式 1-单添加 2-批量添加
        /// </summary>
        public int IsYes { get; set; }

        /// <summary>
        /// 前缀
        /// </summary>
        public string? prefix { get; set; }

        /// <summary>
        /// 开始编号
        /// </summary>
        public int? startNumber { get; set; }

        /// <summary>
        /// 栏位数量
        /// </summary>
        public int? NumberofFields { get; set; }
    }
}
